#ifndef _ZCREATEDEVICE_H_
#define _ZCREATEDEVICE_H_

const BOOL FULLSCREEN=FALSE;
//#define FULLSCREEN FALSE

class ZCreateDevice
{
public:
	static ZCreateDevice& m_CD();
	
	HRESULT Init ();
	VOID ReInit();
	VOID CleanUp();

	LPDIRECT3DDEVICE9		Get_pd3dDevice();
	LPDIRECT3D9				Get_pD3d();
	D3DPRESENT_PARAMETERS	Get_pD3dpp();

	VOID Set_BackBufferSize( UINT a_WValue, UINT a_HValue );

	VOID ResetDevice();

private:
	ZCreateDevice(VOID);
	~ZCreateDevice(VOID);

private:
	LPDIRECT3D9				m_pD3D;
	LPDIRECT3DDEVICE9		m_pd3dDevice;
	D3DPRESENT_PARAMETERS	m_pD3dpp;
};

#endif